<template>
	<view class="box">
		<view class="hr"></view>
		<view class="title">
			反馈类型<text>*</text>
		</view>
		<view class="checkedbox">
			<view class="listcheck" v-for="(item, index) in list" :key="index">
				<u-checkbox active-color="#f73f33" shape="circle" @change="checkboxChange" v-model="item.checked"
					:name="item.name">{{item.name}}</u-checkbox>
			</view>
		</view>
		<view class="title">
			详细描述<text>*</text>
		</view>
		<view class="textareabox">
			<textarea value="" placeholder="请输入描述" />
		</view>
		<view class="title">
			邮箱<text>*</text>
		</view>
		<view class="textareabox">
			<input type="text" value="" placeholder="请输入邮箱" />
		</view>
		<view class="title">
			微信/QQ等其他联系方式<text>*</text>
		</view>
		<view class="textareabox">
			<input type="text" value="" placeholder="请输入其他联系方式" />
		</view>
		<view class="submit">
			提交
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						name: '系统bug',
						checked: false,
						disabled: false
					},
					{
						name: '使用建议',
						checked: false,
						disabled: false
					},
					{
						name: '不良信息举报',
						checked: false,
						disabled: false
					}
				]
			}
		},
		methods: {
			// 选中某个复选框时，由checkbox时触发
			checkboxChange(e) {
				//console.log(e);
			},
		}
	}
</script>

<style lang="scss" scoped>
	.box {
		background-color: #fff;
		padding-bottom: 20rpx;
		.hr {
			background-color: #FAFAFA;
			width: 100%;
			height: 20rpx;
		}

		.title {
			font-family: SourceHanSansCN-Normal;
			font-size: 30rpx;
			color: #222222;
			padding-left: 43rpx;
			box-sizing: border-box;
			margin-top: 40rpx;

			text {
				font-family: SourceHanSansCN-Normal;
				font-size: 30rpx;
				color: #ee0909;
			}
		}

		.checkedbox {
			margin-top: 20rpx;

			.listcheck {
				height: 75rpx;
				border-bottom: 1rpx solid #f3f3f3;
				padding: 12rpx 43rpx;
				box-sizing: border-box;
			}
		}

		.textareabox {
			margin-top: 25rpx;

			textarea {
				width: 640rpx;
				height: 288rpx;
				background-color: #fff;
				border: solid 1rpx #d7d7d7;
				padding: 10rpx;
				box-sizing: border-box;
				margin: 0 auto;
			}

			input {
				width: 640rpx;
				height: 60rpx;
				background-color: #ffffff;
				border: solid 1rpx #d7d7d7;
				margin: 0 auto;
				padding: 0 10rpx;
				box-sizing: border-box;
			}
		}

		.submit {
			width: 622rpx;
			height: 90rpx;
			background-color: #f73f33;
			border-radius: 45rpx;
			font-family: MicrosoftYaHei;
			font-size: 36rpx;
			color: #ffffff;
			line-height: 90rpx;
			text-align: center;
			font-weight: 700;
			margin-top: 116rpx;
			margin-left: 64rpx;
		}
	}
</style>
